package git.matrix.service.impl;

import git.matrix.mapper.RoleMapper;
import git.matrix.pojo.Role;
import git.matrix.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("roleService")
@Repository
public class RoleServiceImpl implements RoleService {
    //快捷键 Ctrl+i
    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> getRoleList() {
        return roleMapper.getRoleList();
    }
}
